package net.ojbk.study.twobox.beans.form.post;

import net.ojbk.study.twobox.beans.form.InputItem;
import net.ojbk.study.twobox.beans.po.Jobcompany;
import net.ojbk.study.twobox.beans.vo.SelectOption;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: twobox
 * Date: 2019/4/17
 * Time: 23:16
 * Description: No Description
 */
@Component
public class JobcompanyPostForm extends SupperPostForm<Jobcompany> {
    public JobcompanyPostForm() {
        this.inputItems.add(new InputItem("工作单位名字",
                "companyname",
                "",
                "text"));
        this.inputItems.add(new InputItem("组织机构代码",
                "comcode",
                "",
                "text"));
        this.inputItems.add(new InputItem("单位地址",
                "address",
                "",
                "text"));
        this.inputItems.add(new InputItem("单位联系人",
                "linkman",
                "",
                "text"));
        this.inputItems.add(new InputItem("单位联系电话号码",
                "telephone",
                "",
                "text"));
        this.inputItems.add(new InputItem("工作岗位",
                "quarters",
                "",
                "text"));
        this.inputItems.add(new InputItem("薪酬",
                "emolument",
                "",
                "text"));

//        正常营业|有学生在岗|无学生在岗|已失效
        List<SelectOption> selectOptions = new ArrayList<>();
        selectOptions.add(new SelectOption("正常营业", "正常营业"));
        selectOptions.add(new SelectOption("有学生在岗", "有学生在岗"));
        selectOptions.add(new SelectOption("无学生在岗", "无学生在岗"));
        selectOptions.add(new SelectOption("已失效", "已失效"));
        this.inputItems.add(new InputItem("公司状态",
                "state",
                "正常营业",
                "select", selectOptions));
        this.inputItems.add(new InputItem("备注",
                "remark",
                "",
                "text"));
    }
}
